﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>

<!--分类列表-->
<ul class="listbottonul" id="listbottonul">
    <%if (bllPowerGroupService.powercheck("article", "typeadd", modelpowergroup))
      { %>
	<li class="menumain"><a id="addinfo" class="addinfo" onclick="javascript:parent.onbotton('_{botton_add_type}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeAdd) %>?mid=<%=ctx.getInt("mid") %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addinfo',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_add_type}" hidefocus="true">_{botton_add_type}</a></li>
	<li class="menumain"><a id="addinfo2" class="addinfo" onclick="javascript:parent.onbotton('_{botton_add_type_base}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeAdd) %>?styleid=4&mid=<%=ctx.getInt("mid") %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addinfo2',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_add_type_base}" hidefocus="true">_{botton_add_type_base}</a></li>
	<li class="menumain"><a id="addinfo3" class="addinfo" onclick="javascript:parent.onbotton('_{botton_add_type_link}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeAdd) %>?styleid=3&mid=<%=ctx.getInt("mid") %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addinfo3',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_add_type_link}" hidefocus="true">_{botton_add_type_link}</a></li>
	<%} %>
	<li class="menumain"><a id="selectall" class="selectall" href="javascript:select_change(true,'selectform','selectall','check_all')" title="_{selAll_botton}" hidefocus="true">_{selAll_botton}</a></li>
    <%if (bllPowerGroupService.powercheck("article", "typeedit", modelpowergroup))
      { %>
	<li class="menumain"><a id="sortall" onclick="javascript:sortinput('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeSort) %>','#{load}','_{sort_messok}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{pid_botton}</a></li>
	<%} %>
	<li class="menumain"><a id="refresh" href="#body" onclick="javascript:refresh('selectform','selectall','check_all');" title="_{refresh_botton}" hidefocus="true">_{refresh_botton}</a></li>
    <%if (bllPowerGroupService.powercheck("article", "typeedit", modelpowergroup))
      { %>
	<li class="menumain"><a id="setbotton" href="#body" hidefocus="true" title="_{set_botton}">_{set_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{inputtype_set_botton}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeSetting) %>','selectinfoid',true,'isclass',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{infooktype_botton}" hidefocus="true">_{infooktype_botton}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeSetting) %>','selectinfoid',true,'isclass',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{lockoktype_botton}" hidefocus="true">_{lockoktype_botton}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{typemanage_ismenu_botton}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeSetting) %>?ch=1','selectinfoid',true,'ismenu',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{open_botton_title}" hidefocus="true">_{open_botton_title}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeSetting) %>?ch=1','selectinfoid',true,'ismenu',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{close_botton_title}" hidefocus="true">_{close_botton_title}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{typemanage_type_add_isaccessory_set}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeSetting) %>?ch=1','selectinfoid',true,'isaccessory',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{infook_botton}" hidefocus="true">_{infook_botton}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.TypeController().TypeSetting) %>?ch=1','selectinfoid',true,'isaccessory',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{lockok_botton}" hidefocus="true">_{lockok_botton}</a></li>
				</ul>
			</li>
		</ul>
	</li>
	<%} %>
</ul>